﻿using System;
using System.Data;
using System.Collections;
using CE.Database;

/// <summary>
/// Summary description for PASelectItemDB
/// </summary>
/// 
namespace CE.PersonalAccident
{
    public class PASelectItemDB
    {
        public PASelectItemDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public Int64 Insert(PASelectItem paselectitem)
        {
            MyDatabase _db = new MyDatabase();
            Int64 _result = -1;
            string _spName = "sprocPAInsuranceSelectItemInsertUpdateSingleItem";

            SortedList _sPara = new SortedList();

            #region Parameter
            _sPara.Add("@PASelectItemId", paselectitem.PASelectItemId);
            _sPara.Add("@PAId", paselectitem.PAId);
            _sPara.Add("@PAInsId", paselectitem.PAInsId);
            _sPara.Add("@ProviderCompanyId", paselectitem.ProviderCompanyId);
            _sPara.Add("@AnnualPremium", paselectitem.AnnualPremium);
            _sPara.Add("@RefCEUserId", paselectitem.RefCEUserId);
            _sPara.Add("@Status", paselectitem.Status);
            #endregion

            _result = _db.ExecuteSP(_spName, _sPara);

            return _result;
        }

    }
}